home *** CD-ROM | disk | FTP | other *** search
/ PC World 2008 September / PCWorld_2008-09_cd.bin / v cisle / sadanastroju / lightning-0.8-tb-win.xpi / chrome / calendar.jar / content / calendar / today-pane.xul < prev    next >
Extensible Markup Language  |  2008-03-13  |  9KB  |  182 lines

  1. <?xml version="1.0"?>
  2. <!--
  3.    - ***** BEGIN LICENSE BLOCK *****
  4.    - Version: MPL 1.1/GPL 2.0/LGPL 2.1
  5.    -
  6.    - The contents of this file are subject to the Mozilla Public License Version
  7.    - 1.1 (the "License"); you may not use this file except in compliance with
  8.    - the License. You may obtain a copy of the License at
  9.    - http://www.mozilla.org/MPL/
  10.    -
  11.    - Software distributed under the License is distributed on an "AS IS" basis,
  12.    - WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
  13.    - for the specific language governing rights and limitations under the
  14.    - License.
  15.    -
  16.    - The Original Code is Sun Microsystems code.
  17.    -
  18.    - The Initial Developer of the Original Code is Sun Microsystems.
  19.    - Portions created by the Initial Developer are Copyright (C) 2006
  20.    - the Initial Developer. All Rights Reserved.
  21.    -
  22.    - Contributor(s):
  23.    -   Berend Cornelius <berend.cornelius@sun.com>
  24.    -
  25.    - Alternatively, the contents of this file may be used under the terms of
  26.    - either the GNU General Public License Version 2 or later (the "GPL"), or
  27.    - the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
  28.    - in which case the provisions of the GPL or the LGPL are applicable instead
  29.    - of those above. If you wish to allow use of your version of this file only
  30.    - under the terms of either the GPL or the LGPL, and not to allow others to
  31.    - use your version of this file under the terms of the MPL, indicate your
  32.    - decision by deleting the provisions above and replace them with the notice
  33.    - and other provisions required by the GPL or the LGPL. If you do not delete
  34.    - the provisions above, a recipient may use your version of this file under
  35.    - the terms of any one of the MPL, the GPL or the LGPL.
  36.    -
  37.    - ***** END LICENSE BLOCK *****
  38. -->
  39.  
  40. <!DOCTYPE overlay
  41. [
  42.     <!ENTITY % dtd1 SYSTEM "chrome://calendar/locale/global.dtd" > %dtd1;
  43.     <!ENTITY % dtd2 SYSTEM "chrome://lightning/locale/lightning.dtd" > %dtd2;
  44.     <!ENTITY % dtd3 SYSTEM "chrome://messenger/locale/messenger.dtd" > %dtd3;
  45.     <!ENTITY % dtd4 SYSTEM "chrome://calendar/locale/calendar.dtd" > %dtd4;
  46. ]>
  47.  
  48. <?xml-stylesheet href="chrome://calendar/skin/today-pane.css" type="text/css"?>
  49. <?xml-stylesheet href="chrome://calendar/content/datetimepickers/minimonth.css" type="text/css"?>
  50.  
  51. <overlay xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
  52.  
  53. <script type="application/x-javascript" src="chrome://calendar/content/today-pane.js"/>
  54. <script type="application/x-javascript" src="chrome://lightning/content/agenda-listbox.js"/>
  55. <script type="application/x-javascript" src="chrome://calendar/content/calendar-management.js"/>
  56. <script type="application/x-javascript" src="chrome://calendar/content/calendar-dnd-listener.js"/> 
  57.  
  58. <script type="application/x-javascript">
  59.   var todaylabel = "&calendar.context.button.label;";
  60. </script>
  61.  
  62. <box id="mailContent">
  63.     <splitter id="today-splitter" collapse="after" persist="state" resizebefore="closest">
  64.         <grippy/>
  65.     </splitter>
  66.     <vbox id="today-pane-panel" addtoolbarbutton="true" width="200" persist="collapsed collapsedinMailMode addtoolbarbutton width">
  67.       <sidebarheader align="center">
  68.         <label id ="today-pane-header"/>
  69.         <spacer flex="1"/>
  70.         <toolbarbutton id="folderview-cycler-left"  class="folderview-cycler"
  71.                        oncommand="TodayPane.cyclePaneView(-1);"/>
  72.         <toolbarbutton id="folderview-cycler-right" class="folderview-cycler"
  73.                        oncommand="TodayPane.cyclePaneView(1);"/>
  74.         <spacer id="buttonspacer"/>
  75.         <toolbarbutton id="today-closer" class="today-closebutton" command="cmd_toggleTodayPane"/>
  76.       </sidebarheader>
  77.       <box id="mini-day-box" class="today-subpane">
  78.         <stack flex="1">
  79.           <image id="mini-day-image" flex="1"/>
  80.           <hbox flex="1">
  81.             <deck id="dateContainer" selectedIndex="0">
  82.               <hbox pack="center">
  83.                 <label id="datevalue-label" text="55" class="dateValue"/>
  84.               </hbox>
  85.               <label class="dateValue"/>
  86.             </deck>
  87.             <vbox flex="1">
  88.               <hbox pack="center">
  89.                 <deck id="weekdayNameContainer"
  90.                    pack="center">
  91.                   <label/>
  92.                   <label/>
  93.                   <label/>
  94.                   <label/>
  95.                   <label/>
  96.                   <label/>
  97.                   <label/>
  98.                 </deck>
  99.                 <spacer id="weekspacer" flex="1"/>
  100.                 <hbox pack="end">
  101.                   <toolbarbutton id="previous-day-button" class="miniday-nav-buttons" oncommand="TodayPane.advance(parseInt(this.getAttribute('dir')));" dir="-1"/>
  102.                   <toolbarbutton id="today-button" class="miniday-nav-buttons" oncommand="TodayPane.setDay(now());"/>
  103.                   <toolbarbutton id="next-day-button" class="miniday-nav-buttons" oncommand="TodayPane.advance(parseInt(this.getAttribute('dir')));" dir="1"/>
  104.                 </hbox>
  105.               </hbox>
  106.               <hbox pack="start">
  107.                 <deck id ="monthNameContainer">
  108.                   <label class="monthlabel"/>
  109.                   <label class="monthlabel"/>
  110.                   <label class="monthlabel"/>
  111.                   <label class="monthlabel"/>
  112.                   <label class="monthlabel"/>
  113.                   <label class="monthlabel"/>
  114.                   <label class="monthlabel"/>
  115.                   <label class="monthlabel"/>
  116.                   <label class="monthlabel"/>
  117.                   <label class="monthlabel"/>
  118.                   <label class="monthlabel"/>
  119.                   <label class="monthlabel"/>
  120.                 </deck>
  121.                 <spacer flex="1"/>
  122.               </hbox>
  123.             </vbox>
  124.             <toolbarbutton id="miniday-dropdown-button" popup="aMinimonthPopupset" class="toolbarbutton-menubutton-dropmarker"/>
  125.             <popupset>
  126.               <popup id="aMinimonthPopupset" position="after_start">
  127.                 <minimonth id="todayMinimonth" flex="1"
  128.                            onchange="TodayPane.setDaywithjsDate(this.value);"/>
  129.               </popup>
  130.             </popupset>
  131.           </hbox>
  132.         </stack>
  133.       </box>
  134.       <vbox flex="1">
  135.         <vbox id="agenda-panel" width="20"
  136.               height="200" persist="collapsed height" flex="1"
  137.               ondraggesture="nsDragAndDrop.startDrag(event, calendarCalendarButtonDNDObserver);"
  138.               ondragover="nsDragAndDrop.dragOver(event, calendarCalendarButtonDNDObserver);"
  139.               ondragdrop="nsDragAndDrop.drop(event, calendarCalendarButtonDNDObserver);">
  140.           <toolbar id="agenda-toolbar" iconsize="small">
  141.             <toolbarbutton id="calendar-new-event-button"
  142.                            mode="mail"
  143.                            iconsize="small"
  144.                            orient="horizontal"
  145.                            class="cal-toolbarbutton-1"
  146.                            label="&calendar.newevent.button.label;"
  147.                            tooltiptext="&calendar.newevent.button.tooltip;"
  148.                            oncommand="agendaListbox.createNewEvent(event)"/>
  149.          </toolbar>
  150.          <popup id="agenda-menu" onpopupshowing="agendaListbox.buildAgendaPopupMenu(this);"/>
  151.          <vbox id="agenda-menu-box" hidden="true">
  152.            <menuitem label="&calendar.context.modifyitem.label;"
  153.              accesskey="&calendar.context.modifyitem.accesskey;"
  154.              observes="agenda_edit_event_command"/>
  155.            <menuitem label="&calendar.context.deleteitem.label;"
  156.              accesskey="&calendar.context.deleteitem.accesskey;"
  157.              observes="agenda_delete_event_command"/>
  158.          </vbox>
  159.          <vbox id="richlistitem-container" hidden="true">
  160.             <agenda-allday-richlist-item/>
  161.             <agenda-richlist-item/>
  162.             <agenda-checkbox-richlist-item id="today-header-hidden" title="&calendar.today.button.label;" checked="true" persist="checked"/>
  163.             <agenda-checkbox-richlist-item id="tomorrow-header-hidden" title="&calendar.tomorrow.button.label;" checked="false" persist="checked"/>
  164.             <agenda-checkbox-richlist-item id="nextweek-header-hidden" title="&calendar.soon.button.label;" checked="false" persist="checked"/>
  165.          </vbox>
  166.          <richlistbox id="agenda-listbox" flex="1" context="agenda-menu"
  167.                        onclick="agendaListbox.onSelect();"
  168.                        onblur="agendaListbox.onBlur();"
  169.                        onfocus="agendaListbox.onFocus();"
  170.                        onkeypress="agendaListbox.onKeyPress(event);"
  171.                        ondblclick="agendaListbox.createNewEvent(event);"/>
  172.         </vbox>
  173.         <splitter id="today-pane-splitter" persist="hidden"/>
  174.         <vbox id="todo-tab-panel" flex="1" persist="collapsed height"
  175.               ondraggesture="nsDragAndDrop.startDrag(event, calendarTaskButtonDNDObserver);"
  176.               ondragover="nsDragAndDrop.dragOver(event, calendarTaskButtonDNDObserver);"
  177.               ondragdrop="nsDragAndDrop.drop(event, calendarTaskButtonDNDObserver);"/>
  178.       </vbox>
  179.     </vbox>
  180.   </box>
  181. </overlay>
  182.